package com.witmore.neutron.ai.web.controller;

import com.jk.common.response.ResponseResult;
import com.witmore.neutron.ai.web.apiv2.nls.NlsTokenCache;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description: VoiceController
 * Author: 豆子高
 * Date: 2025/6/26 14:30
 */
@RestController
@RequestMapping("/chat/voice")
public class VoiceController {
    @Autowired
    private NlsTokenCache nlsTokenCache;

    @GetMapping("/nls-token")
    public ResponseResult<String> getNlsToken() {
        return ResponseResult.success(nlsTokenCache.getToken());
    }
}
